from random import randint
Ist = [randint(40,100) for _ in range(10)]
avg = sum(Ist)/len(Ist)
if avg >= 90:
    s = '优秀'
elif avg >= 75:
    s = '良好'
elif avg >= 60:
    s = '中等'
else:
    s = '不及格'
print('平均分:{:.1f},{}'.format(avg, s))